<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<fieldset>
	<legend>Novo Time</legend>
	<h:panelGrid columns="3">
		<h:outputLabel value="Nome: " for="time-nome" />
		<h:inputText id="time-nome" required="true"
			value="#{timeMB.time.nome}">
			<f:validateLength minimum="3" />
		</h:inputText>
		<h:message for="time-nome" styleClass="mensagem-erro" />
		<h:outputLabel value="Técnico: " for="time-tecnico" />
		<h:inputText id="time-tecnico" required="true"
			value="#{timeMB.time.tecnico}">
			<f:validateLength minimum="6" />
		</h:inputText>
		<h:message for="time-tecnico" styleClass="mensagem-erro" />
		<h:commandButton value="Cadastrar" styleClass="botao-formulario"
			action="#{timeMB.adiciona}">
			<f:ajax event="action" execute="@form" render="@form" />
		</h:commandButton>
	</h:panelGrid>
</fieldset>
</html>